package org.yourscrum.service;

import org.yourscrum.domain.PlanType;
import org.yourscrum.domain.Story;

import java.util.List;

/**
 * @author Jettro Coenradie
 */
public interface BacklogService {
    List<Story> listAllStories();

    Story obtainStoryById(Long id);

    Story createStory(String name, String description);

    Story changeStory(long id, String name, String description);

    Story addTaskToStory(long storyId, String description, int estimatedHours);

    void plan(Long storyId, PlanType planType, Long otherStoryId);
}
